package com.itheima.io.properties.demo01;

import java.util.Properties;
import java.util.Set;

public class PropertiesDemo01 {

    public static void main(String[] args) {

        Properties properties = new Properties();

        properties.setProperty("蓝忘机", "15");
        properties.setProperty("魏无羡", "16");
        properties.setProperty("温琼林", "13");
        properties.setProperty("江晚吟", "14");

        String value = properties.getProperty("蓝忘机");
        System.out.println(value);

        Set<String> stringSet = properties.stringPropertyNames();
        for (String key1: stringSet){
            String value1 = properties.getProperty(key1);
            System.out.println(key1 + "--" + value1);
        }


        System.out.println(properties);


    }



}
